from django.contrib.sitemaps import Sitemap
from bl_g.models import Entry
from pr_j.models import Project
from t_ch.models import Technology
from cm_s.models import Page

class BlogSitemap(Sitemap):
    def items(self):
        return Entry.objects.filter(draft=False)

class ProjectSitemap(Sitemap):
    def items(self):
        return Project.objects.all()

class TechnologySitemap(Sitemap):
    def items(self):
        return Technology.objects.all()

class PageSitemap(Sitemap):
    def items(self):
        return Page.objects.filter(draft=False)
